package com.sofwin.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TestController {
	
	@RequestMapping("test1")
	@ResponseBody
	public Map test01() {
		Map map = new HashMap();
		map.put("userName", "admin");
		return map;
	}
	@RequestMapping("test2")
	public ModelAndView test02() {
		return new ModelAndView("/view/index.jsp");
	}

}
